

package jetbrains.buildServer.server.rest.data.finder.syntax;

import jetbrains.buildServer.server.rest.data.locator.Dimension;
import jetbrains.buildServer.server.rest.data.locator.PlainValue;
import jetbrains.buildServer.server.rest.data.locator.Syntax;
import jetbrains.buildServer.server.rest.data.locator.definition.FinderLocatorDefinition;
import jetbrains.buildServer.server.rest.swagger.annotations.LocatorResource;
import jetbrains.buildServer.server.rest.swagger.constants.LocatorName;

@LocatorResource(value = LocatorName.AGENT_TYPE, baseEntity = "AgentType")
public class AgentTypeDimensions implements FinderLocatorDefinition {
  public static final Dimension SINGLE_VALUE = CommonLocatorDimensions.SINGLE_VALUE("id of the AgentType.");

  public static final Dimension ID = Dimension.ofName("id").description("id of the AgentType.")
                                              .syntax(PlainValue.int64()).build();

  public static final Dimension AGENT = Dimension.ofName("agent").description("AgentType of the given agent.")
                                                 .syntax(Syntax.forLocator(LocatorName.AGENT)).build();

}